cmake_minimum_required(VERSION 3.10)
project(pointpillars_onnx_pcl)

# 设置C++版本
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(PCL REQUIRED)
set(ONNXRUNTIME_HOME "/home/ch/onnxruntime-linux-x64-1.22.0")

# 添加你的头文件目录 (inc)
include_directories(${CMAKE_SOURCE_DIR}/inc)

include_directories(${PCL_INCLUDE_DIRS} ${ONNXRUNTIME_HOME}/include)
link_directories(${ONNXRUNTIME_HOME}/lib)
add_definitions(${PCL_DEFINITIONS})

add_executable(pointpillars_onnx_pcl pointpillars.cpp)
target_link_libraries(pointpillars_onnx_pcl ${PCL_LIBRARIES} onnxruntime)